<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .logo {
            width: 100%;
            margin: 0 auto;
        }

        .logo>img {
            width: 300px;
            display: block;
            margin: 0 auto;
        }

        .nav-box {
            width: 500px;
            height: 50px;
            margin: 0 auto;
        }

        .nav {
            width: 500px;
            box-sizing: border-box;
        }

        .nav>li {
            float: left;
            margin: 10px 15px;
        }

        .search-box {
            width: 700px;
            margin: 10px auto 40px auto;
            padding-left: 150px;
        }

        .search-box>input {
            box-sizing: border-box;
            width: 500px;
            height: 30px;
            box-shadow: 1px -1px rgba(134, 134, 248, .8);
            border: 1px solid #999;
        }

        .search-box>button {
            width: 100px;
            height: 30px;
        }

        .nav2-box {
            height: 30px;
        }

        .nav2 {
            width: 260px;
            margin: 0 auto;
        }

        .nav2>li {
            float: left;
        }

        .nav2>li:nth-of-type(1),
        .nav2>li:nth-of-type(2),
        .nav2>li:nth-of-type(3) {
            margin-left: 20px;
        }

        section>p {
            width: 350px;
            display: block;
            margin: 40px auto 80px auto;
        }

        footer {
            width: 400px;
            margin: 0 auto;
        }

        footer>a {
            margin-bottom: 20px;
            display: inline-block;
        }

        footer>a:nth-child(1) {
            padding-left: 94px;
        }

        footer>ul {
            margin-bottom: 30px;
            padding-left: 20px;
        }

        footer>ul>li {
            float: left;
        }

        footer>p {
            padding-left: 33px;
        }
    </style>
</head>

<body>
    <header>
        <div class="logo">
            <img src="https://img.imgdb.cn/item/6039dc695f4313ce25e03678.jpg" alt="">
        </div>
        <div class="nav-box">
            <ul class="nav">
                <li><a href="">新闻</a></li>
                <li><a href="">网页</a></li>
                <li><a href="">贴吧</a></li>
                <li><a href="">知道</a></li>
                <li><a href="">音乐</a></li>
                <li><a href="">图片</a></li>
                <li><a href="">视频</a></li>
                <li><a href="">地图</a></li>
            </ul>
        </div>
        <div class="search-box">
            <input type="text">
            <button>百度一下</button>
        </div>
    </header>
    <section>
        <div class="nav2-box">
            <ul class="nav2">
                <li><a href="">百科</a></li>
                <li><a href="">文库</a></li>
                <li><a href="">好123</a></li>
                <li>&nbsp;|&nbsp;</li>
                <li><a href="">更多>></a></li>
            </ul>
        </div>
        <p>
            <img src="https://img.imgdb.cn/item/6039f3955f4313ce25f6570b.png" alt="">
            <a href="#">百度地图带你吃喝玩乐，全心全意为人民服务</a>
        </p>
    </section>
    <footer>
        <a href="#">把百度设为主页</a><a href="#">安装百度卫士</a>
        <ul>
            <li><a href="#">加入百度推广</a></li>
            <li>&nbsp;|&nbsp;</li>
            <li><a href="#">搜索风云榜</a></li>
            <li>&nbsp;|&nbsp;</li>
            <li><a href="#">关于百度</a></li>
            <li>&nbsp;|&nbsp;</li>
            <li><a href="#">About Baidu</a></li>
        </ul>
        <p>&copy;2013 Baidu 使用百度前必读 京ICP证037173号</p>
    </footer>
</body>

</html>